package org.wk.user.enums;

/**
 * @Description VIP申请状态
 * @param
 * @author ZhaoPing'an
 * @Date 2018/6/22 13:59
 */
public enum ApplyVipStatus {
    NO_APPLY("no_apply","未申请"),
    APPLYING("applying","审核中"),
    FAIL_APPLY("fail_apply","审核未通过"),
    PASS_APPLY("pass_apply","审核通过");
    private String code;
    private String name;
    private ApplyVipStatus(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static ApplyVipStatus containsCode(String code) {
        for (ApplyVipStatus item : ApplyVipStatus.values()) {
            if (item.getCode().equals(code)) {
                return item;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setName(String name) {
        this.name = name;
    }
}
